package com.example.campusforumapi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Article {
    private Integer articleId; //文章ID
    private Integer categoryId;//标签ID
    private String departmentName;//学院名称
    private String categoryName; //文章标签
    private String title;//文章标题
    private Integer userId;//作者Id
    private String username;//作者
    private LocalDateTime publishTime;//上传时间
    private String content;//正文内容
    private String attachment;//正文附件
    private String video;//视频附件
    private Integer viewCount;//浏览量
    private Integer likeCount;//点赞量
    private Integer collectCount;//收藏量
    private Float hotScore;//文章热度值
    private LocalDateTime updateTime;//更新时间
    private Integer status;//发布状态  0 draft 草稿  1 pending 待审核 2 published 已发布
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime submitTime;//文章审核提交时间
    private String feedback;//文章审核反馈
}
